import Vue from 'vue';
import Vuex from 'vuex';
import EmployeeStore from './modules/system/EmployeeStore';
import UserStore from './modules/system/UserStore';
import RoleStore from './modules/system/RoleStore';
import AssetsStore from './modules/system/AssetsStore';
import AssetClassifyStore from './modules/system/AssetClassifyStore';
import AssetInfoStore from './modules/system/AssetInfoStore';
import AppStore from './modules/AppStore';

Vue.use(Vuex);

const store=new Vuex.Store({
	strict: false, //开启严格模式，state的变更只能通过mutation提交，不然报异常
    modules:{
        'system/employee':EmployeeStore,
        'system/user':UserStore,
        'system/role':RoleStore,
        'system/asset':AssetsStore,
        'system/assetInfo':AssetInfoStore,
        'system/assetClassify':AssetClassifyStore,
        'app':AppStore
    }
});

export default store;